package runtime

import "net/http"

type Application struct {
	routerEngine http.Handler
}

func (app *Application) SetRouterEngine(engine http.Handler) {
	app.routerEngine = engine
}

func (app *Application) GetRouterEngine() http.Handler {
	return app.routerEngine
}

func defaultRuntime() *Application {
	return &Application{}
}

// Runtime 默认运行时上下文工具
var Runtime = defaultRuntime()
